package com.zw.gulimall.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zw.common.entity.product.AttrAttrgroupRelationEntity;
import com.zw.common.entity.product.AttrGroupEntity;
import com.zw.common.vo.product.SpuItemAttrGroupVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性分组
 *
 * @author zw
 * @email Alisinngai@gmail.com
 * @date 2023-06-11 23:54:03
 */
@Mapper
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {

    void deleteRelation(@Param("items") List<AttrAttrgroupRelationEntity> items);

    List<SpuItemAttrGroupVO> getAttrGroupWithAttrsBySpuId(@Param("spuId") Long spuId, @Param("catalogId") Long catalogId);
}
